#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  int N;
  scanf("%d", &N);
  if (N == 1 || N == 2)
    printf("YES");
  else if (N % (4) == 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
